package com.bjsxt.lambda2;

public interface MyInterface3 {
    public void method(int num, String name);

    public static void main(String[] args) {
        //情况1：
        MyInterface3 myInterface = (int num,String name)->{
            System.out.println(num+"   "+name);
            System.out.println("-------多个参数没有返回值--------");
        };
        myInterface.method(100,"bjsxt");

        //情况2：参数类型可以省略，参数名任意；()不可以省略
        MyInterface3 myInterface2 = (n,name)->{
            System.out.println(n+"   "+name);
            System.out.println("-------多个参数没有返回值--------");
        };
        myInterface2.method(100,"bjsxt");
    }
}
